package com.jfgold.config;

import com.jfgold.core.interceptor.GlobalInterceptor;
import com.jfinal.config.Constants;
import com.jfinal.config.Handlers;
import com.jfinal.config.Interceptors;
import com.jfinal.config.JFinalConfig;
import com.jfinal.config.Plugins;
import com.jfinal.config.Routes;
import com.jfinal.log.Log;
import com.jfinal.template.Engine;

public class MainConfig extends JFinalConfig{
	
	protected static Log log = Log.getLog(JFinalConfig.class);
	
	//配置常量
	@Override
	public void configConstant(Constants me) {
		
	}

	//配置路由
	@Override
	public void configRoute(Routes me) {
		// TODO Auto-generated method stub
		
	}

	//配置引擎
	@Override
	public void configEngine(Engine me) {
		// TODO Auto-generated method stub
		
	}

	//配置插件
	@Override
	public void configPlugin(Plugins me) {
		// TODO Auto-generated method stub
		
	}

	//配置拦截器
	@Override
	public void configInterceptor(Interceptors me) {
		log.info("=========装配拦截器开始============");
		me.addGlobalActionInterceptor(new GlobalInterceptor());
		log.warn("=========装配拦截器结束============");
	}

	//配置Handler处理器
	@Override
	public void configHandler(Handlers me) {
		// TODO Auto-generated method stub
		
	}

}
